<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<!--<html lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">-->
<head>
    <meta charset="UTF-8">
    <title>Error</title>
</head>
<body>
<h1>这里是Error页面</h1>
<div>
    <!--页面显示请求路径和错误信息-->
    <div th:text="'请求路径 : ' + ${url}"></div>
    <div th:text="'异常信息 : ' + ${exception.message}"></div>

    <!--把错误信息放入页面源代码的注释中-->
    <div th:utext="'&lt;!--'" th:remove="tag"></div>
    <div th:utext="'请求路径 : ' + ${url}" th:remove="tag"></div>
    <div th:utext="'异常信息 : ' + ${exception.message}" th:remove="tag"></div>
    <ul th:remove="tag">
        <li th:each="st : ${exception.stackTrace}" th:remove="tag">
            <span th:utext="${st}" th:remove="tag"></span>
        </li>
    </ul>
    <div th:utext="'--&gt;'" th:remove="tag"></div>
</div>
</body>
</html>